import Vue from 'vue'
import Router from 'vue-router'
import MusicRank from 'pages/m-rank/MusicRank'
import MusicRecommend from 'pages/m-recommend/MusicRecommend'
import MusicSearch from 'pages/m-search/MusicSearch'
import MusicSinger from 'pages/m-singer/MusicSinger'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/recommend',
      name: 'MusicRecommend',
      component: MusicRecommend
    },
    {
      path: '/rank',
      name: 'MusicRank',
      component: MusicRank
    },
    {
      path: '/search',
      name: 'MusicSearch',
      component: MusicSearch
    },
    {
      path: '/singer',
      name: 'MusicSinger',
      component: MusicSinger
    },
    {
      path: '/',
      redirect: '/recommend'
    }
  ]
})
